/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.evangelion.core.serviceImpl;

import com.evangelion.core.bean.Profesor;
import com.evangelion.core.bean.Seccione;
import com.evangelion.core.dao.ProfesorDao;
import com.evangelion.core.service.ProfesorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author Usuario
 */
@Service("profesorService")
public class ProfesorServiceImpl implements ProfesorService {

    @Autowired
    private ProfesorDao profesorDao;

    @Override
    public void save(Profesor profesor) {
        profesorDao.save(profesor);
    }

    @Override
    public void delete(Profesor profesor) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public Profesor find(Profesor profesor) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public Profesor findObjByParam(String parametro, String valor) throws Exception {
        return profesorDao.findObjByParam(parametro, valor);
    }

    @Override
    public List<Profesor> findByParam(String parametro, String valor) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List<Profesor> ListActive(Profesor profesor) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List<Profesor> findListByParam(String parametro, String valor) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List<Profesor> searchByNifNombre(Seccione seccion, String valor, int start, int max) {
        return profesorDao.searchByNifNombre(seccion, valor, start, max);
    }

    @Override
    public int countPage(Seccione seccion, String valor) {
        return profesorDao.countPage(seccion, valor);
    }

}
